Fix css parser tests
authorMatthias Clasen <mclasen@redhat.com>
Tue, 16 Oct 2012 10:00:40 +0000 (06:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 16 Oct 2012 10:02:03 +0000 (06:02 -0400)
commit4e09e180e4a47ab03193cad71273130817fb8d83
tree6f2e9a67e30b8344023f70248a834e9452e82f96
parentf9dae1d526f84bb9af4dcc415c9ff7ae8dbc3540
Fix css parser tests

Parsing a shorthand background property was running into unexpected
errors when trying position values where there were none. To fix this,
introduce a try_parse variant of the position parse function that
silently returns NULL.
gtk/gtkcsspositionvalue.c
gtk/gtkcsspositionvalueprivate.h
gtk/gtkcssshorthandpropertyimpl.c